package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.vo.SkuHasStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author durant
 * @create 2021-12-09 15:14
 * @Description:
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {
    // 查询是否有库存
    @PostMapping("/hasStock")
    public  List<SkuHasStockVo>  getSkusHasStock(@RequestBody List<Long> skuIds);
}
